package com.tm.controller;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.tm.service.EcMemberInfoService;

/**
 * 定时任务接口
 * @author GXL
 * 2018年2月7日
 * 
 * TODO 处理悟空平台所有定时任务业务
 */
@RestController
@RequestMapping(value = "/job")
public class JobController {

	private Logger logger = Logger.getLogger(JobController.class);
	
	@Autowired
	private EcMemberInfoService emService;
	
	
	/**
	 * 每日上午九点向未签到会员推送签到提醒 （APP签到暂未对接，暂时注释状态）
	 * 
	 * @param request
	 * @param response
	 * @return
	 */
	/*@ApiOperation(value = "签到提醒", notes = "天娃商盟签到提醒接口")
	@RequestMapping(value = "/signRemind", method = RequestMethod.GET)
	public ResultEntity signRemind(HttpServletRequest request, HttpServletResponse response) {
		ResultEntity re = null;
		String msg = "";
		System.out.println("-------------------------------签到提醒接口begin-----------------------------------------");
		try {
			
			re = emService.signRemind();

		} catch (Exception e) {
			e.printStackTrace();
			System.out.println("-------------------------------请求出错-----------------------------------------");
			System.out.println(e.getMessage());
			msg = e.getMessage();
			re = new ResultEntity("-1", msg, response);
		}
		System.out.println("-------------------------------签到提醒接口end-----------------------------------------");

		return re;
	}*/
	
}
